package com.syn.michat.im.model;

import com.alibaba.fastjson.annotation.JSONField;
import com.syn.michat.pojo.User;

public class MessageEntity {
    // 消息UUID
    private String uuid;
    // 被操作消息ID / 被操作用户ID
    private String targetId;
    // 发送者
    private User sender;
    // 接受者
    private User receiver;
    // 内容
    private String content;
    // 消息类型
    private String msgType;
    // 消息的发送时间
    private long time;
    // 消息权限
    private int rights;

    public User getSender() {
        return sender;
    }

    public void setSender(User sender) {
        this.sender = sender;
    }

    public User getReceiver() {
        return receiver;
    }

    public void setReceiver(User receiver) {
        this.receiver = receiver;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getMsgType() {
        return msgType;
    }

    public void setMsgType(String msgType) {
        this.msgType = msgType;
    }

    public String getUuid() {
        return uuid;
    }

    public void setUuid(String uuid) {
        this.uuid = uuid;
    }

    public long getTime() {
        return time;
    }

    public void setTime(long time) {
        this.time = time;
    }

    public int getRights() {
        return rights;
    }

    public void setRights(int rights) {
        this.rights = rights;
    }

    public String getTargetId() {
        return targetId;
    }

    public void setTargetId(String targetId) {
        this.targetId = targetId;
    }
}
